<div class="deliveryStatuses view">
<h2><?php  echo __('Delivery Status'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($deliveryStatus['DeliveryStatus']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($deliveryStatus['DeliveryStatus']['name']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Delivery Status'), array('action' => 'edit', $deliveryStatus['DeliveryStatus']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Delivery Status'), array('action' => 'delete', $deliveryStatus['DeliveryStatus']['id']), null, __('Are you sure you want to delete # %s?', $deliveryStatus['DeliveryStatus']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Delivery Statuses'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Delivery Status'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Deliveries'), array('controller' => 'deliveries', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Delivery'), array('controller' => 'deliveries', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Deliveries'); ?></h3>
	<?php if (!empty($deliveryStatus['Delivery'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Order Id'); ?></th>
		<th><?php echo __('Item Id'); ?></th>
		<th><?php echo __('Delivery Status Id'); ?></th>
		<th><?php echo __('Tracking'); ?></th>
		<th><?php echo __('Note'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($deliveryStatus['Delivery'] as $delivery): ?>
		<tr>
			<td><?php echo $delivery['id']; ?></td>
			<td><?php echo $delivery['order_id']; ?></td>
			<td><?php echo $delivery['item_id']; ?></td>
			<td><?php echo $delivery['delivery_status_id']; ?></td>
			<td><?php echo $delivery['tracking']; ?></td>
			<td><?php echo $delivery['note']; ?></td>
			<td><?php echo $delivery['created']; ?></td>
			<td><?php echo $delivery['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'deliveries', 'action' => 'view', $delivery['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'deliveries', 'action' => 'edit', $delivery['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'deliveries', 'action' => 'delete', $delivery['id']), null, __('Are you sure you want to delete # %s?', $delivery['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Delivery'), array('controller' => 'deliveries', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
